<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {

    public function _initialize(){

        session_start();
        echo '<link href="'.__ROOT__.'/Public/css/bootstrap.min.css" rel="stylesheet"/>';
        echo '<script type="text/javascript" src="'.__ROOT__.'/Public/js/jquery.js"></script>';
        echo '<script type="text/javascript" src="'.__ROOT__.'/Public/js/bootstrap.min.js"></script>';

    }
    public function index(){
        $this->token = mt_rand(0,1000000);
        $_SESSION['token'] = md5($this->token);
        $this->display();
    }


    public function test(){
        $this->display();
    }
}